<?php

class NewsController extends AdminController {
	public $modelName = 'WebNews';
	
	/*
        actionIndex  资讯列表
        actionEdit   编辑资讯
        actionDelete  删除资讯
        actionSetTop  置顶资讯
        actionRecomment 推荐资讯
    */
	public function outerActions() {
		return array_merge(parent::outerActions(), array(
			'admin' => 'actions.mall.news.admin',
			'edit' => 'actions.mall.news.edit',
			'view' => 'actions.mall.news.view'
		));
	}
	
	public function modelProvider() {
		return array_merge(parent::modelProvider(), array(
			'criteria' => array('scopes'=>'related'),
		));
	}
}

?>